package top.itpath.common;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import java.io.Serializable;
import java.util.Date;

/**
 * @author zhaomengru
 * create by  2023/10/10 - 11:34
 */
@Getter
@Setter
@MappedSuperclass
public class BaseModel implements Serializable {

    @Id
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    private Date createTime;

    private Date updateTime;

    private Long updateBy;

    private Long createBy;

    @Column(columnDefinition = "text")
    private String remark;

    private Integer sort;
}
